package com.kgis.fm.access.platform.model;

import com.kgis.kp.common.util.StringPool;


/**
 * 矢量图形的属性
 * 
 * @author 
 */
public class AttrField {
	private String fieldName;
	private String fieldValue;

	public String getFieldName() {
		return fieldName;
	}

	public void setFieldName(String name) {
		//this.fieldName = name;
		this.fieldName = StringPool.getInstance().getSharedString(name);
	}

	public String getFieldValue() {
		return fieldValue;
	}

	public void setFieldValue(String value) {
		this.fieldValue = value;
	}
	
	public void addTableName(String tableName){
		//fieldName = tableName + "." + fieldName;
		setFieldName(tableName + "." + fieldName);
	}

	@Override
	public String toString() {
		return "AttrField [name=" + fieldName + ", value=" + fieldValue + "]";
	}

}
